/*
 * FileName：SysLoginInfo.java 
 * <p>
 * Copyright (c) 2017-2020 <a href="">hermit(1154808491@qq.com)</a>.
 * <p>
 * Licensed under the GNU General Public License, Version 3 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.gnu.org/licenses/gpl-3.0.html
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 */
package com.koine.entity.sys;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.koine.common.page.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 登录信息
 *
 * @author hermit
 * @version 2.0
 * @date 2018-12-30 22:26:32
 */
@Data
@Builder(toBuilder = true)
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = " 登录信息")
public class SysLoginInfo extends Page implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
    @ApiModelProperty(value = "主键")
	private String id;
	/**
	 * 用户id
	 */
    @ApiModelProperty(value = "用户id")
	private String userId;
	/**
	 * 用户名
	 */
    @ApiModelProperty(value = "用户名")
	private String account;
	/**
	 * 用户昵称
	 */
    @ApiModelProperty(value = "用户昵称")
	private String userName;
	/**
	 * ip
	 */
    @ApiModelProperty(value = "ip")
	private String loginIp;
	/**
	 * ip地址
	 */
    @ApiModelProperty(value = "ip地址")
	private String loginLocation;
	/**
	 * ip地址
	 */
	@ApiModelProperty(value = "ip城市")
	private String loginCity;
	/**
	 * 浏览器
	 */
    @ApiModelProperty(value = "浏览器")
	private String clientBrowser;
	/**
	 * 操作系统
	 */
    @ApiModelProperty(value = "操作系统")
	private String clientOs;
	/**
	 * 登陆时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "登陆时间")
	private Date loginTime;
	/**
	 * 0成功1失败
	 */
    @ApiModelProperty(value = "0成功1失败")
	private String status;
	/**
	 * 提示消息
	 */
    @ApiModelProperty(value = "提示消息")
	private String msg;

	/**
	 * 城市名字
	 */
	@ApiModelProperty(value = "城市名字")
	private String name;

	/**
	 * 城市次数
	 */
	@ApiModelProperty(value = "城市次数")
	private Long value;
}
